package sctu.edu.java.year2016.team04.luoxinghua.lianxi.sandam;

/**定义一个成员变量，两个成员方法，一个成员方方法赋值，一个成员方法获取这个值；
 * Created by 落叶的思恋 on 2016/5/25.
 */
public class Book {
    private String name;
    private String author;
    private double price;

    public Book(String name, String author, double price)

    {
        this.name = name;
        this.author=author;
        price=price;
    }
    public String getname(){
        return "《"+name+" 》";
    }
    public String getauthor(String st){
        st=("nishi huai ren");
        return st;
    }
    public String getprice( ){
        return "zunjingde"+author;
    }
}
